package com.koc.robot;

public class Color 
{
	// android does not have java.awt.Color class
	public Color()
	{
		R = 0;
		G = 0;
		B = 0;
		A = 1.0f;
	}
	
	public Color(float _r, float _g, float _b)
	{
		R = _r;
		G = _g;
		B = _b;
		A = 1.0f;
	}
	
	public Color(float _r, float _g, float _b, float _a)
	{
		R = _r;
		G = _g;
		B = _b;
		A = _a;
	}
	
	public Color(int c)
	{
		int a = (c >> 24) & 0xFF;
		int r = (c >> 16) & 0xFF;
		int g = (c >> 8) & 0xFF ;
		int b = c & 0xFF;
		R = (float)r / 255.0f;
		G = (float)g / 255.0f;
		B = (float)b / 255.0f;
		A = (float)a / 255.0f;
	}
	
	
	public float R;
	public float G;
	public float B;
	public float A;
}
